package com.bond.common;

import com.bond.dao.SysInitMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class CmdRunner implements CommandLineRunner {

    @Autowired
    private SysInitMapper sysInitMapper;

    @Override
    public void run(String... args) throws Exception {

        //初始化建表
        sysInitMapper.createTableDeviceInfo();
        sysInitMapper.createTableScanReqInfo();
        System.out.println("初始化建表完成");
    }
}
